<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script language="javascript">
	function printFacultyResearchDetails(facultyResearchId){
		$('#facultyResearchId').val(facultyResearchId);
		$('#facultyResearchDetailsForm').attr('action', 'printFacultyResearchDetails.html');
		$('#facultyResearchDetailsForm').submit();
	}
</script>

<%@include file="/ui/jsp/includes/header.jspf"%>
<div class="container-fluid">

    <form id="facultyResearchDetailsForm" class="form-horizontal" method="POST" target="_blank">
		<div class="addnew_button" align="right">
			<input type="button" title="Display in a Print-friendly Format" value="Print" onclick="javascript:printFacultyResearchDetails('${facultyResearch.facultyResearchId}')" class="btn btn-primary">
		</div>
        <div id="top" class="hero-unit">

            <div id="thesis-details-header"> Faculty Research Details
            </div>
            <hr>

            <div class="control-group">

                <label class="control-label">Research Title:</label>
                <div class="controls"> ${facultyResearch.title}</div>
                <label class="control-label">Faculty Name:</label>
                <div class="controls"> ${facultyResearch.faculty.getFullName()}</div>
                <label class="control-label">Category:</label>
                <div class="controls"> ${facultyResearch.category.categoryName}</div>
                <c:if test="${empty facultyResearch.category.categoryName}">
                <br/>
                </c:if>
                <label class="control-label">Description:</label>
                <div class="controls"> ${facultyResearch.description}</div>
                <c:if test="${empty facultyResearch.description}">
                <br/>
                </c:if>
                <label class="control-label">Status:</label>
                <div class="controls"> ${facultyResearch.status}</div>
                <c:if test="${empty facultyResearch.status}">
                <br/>
                </c:if>
                <label class="control-label">Minimum Requirements:</label>
                <div class="controls"> ${facultyResearch.minRequirements}</div>
                <c:if test="${empty facultyResearch.minRequirements}">
                <br/>
                </c:if>
                <br/>
                <label class="control-label">Research URL:</label>
                <div class="controls"><a href="${facultyResearch.researchUrl}" target="_blank">${facultyResearch.researchUrl}</a></div>
                <c:if test="${empty facultyResearch.researchUrl}">
                <br/>
                </c:if>
                
                <div class="controls"> </div>

            </div>
        </div>
        <input type="hidden" id="facultyResearchId" name="facultyResearchId" value=""/>
    </form>

</div>
<%@include file="/ui/jsp/includes/footer.jspf"%>

<style>
    .form-horizontal {
        border: 0 none;
        margin-left: 0px;
        margin-top: 0px;
        padding-top: 0px;
        width: 100%;
    }

    .form-horizontal .control-label {
        float: left;
        font-weight: bold;
        padding-top: 5px;
        text-align: right;
        width: 160px;
    }

    label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] {
        cursor: pointer;
    }
</style>